package day240317.e1;

public class PlayingCadeGroup {
    //state
    PlayingCade[] cards = new PlayingCade[52];

    //behavior
    public void newACards() {
        int index = 0;
        String[] suit = {"♥","♦","♠","♣"};
        String[] number = {"A","2","3","4","5","6","7","8","9","10","J","Q","k"};
        for (int i = 0; i < 13; i++) {
            for (int j = 0; j < 4; j++) {
                this.cards[index] = new PlayingCade();
                this.cards[index].getNumber(number[i]);
                this.cards[index].getSuit(suit[j]);
                index++;
            }
        }
    }
    public void showAllCade() {
        for (int i = 0; i < cards.length; i++) {
            cards[i].show();
        }
    }
}
